package cn.tedu.eguser1.pojo.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.apache.ibatis.annotations.Param;


@Data
public class UserAddParam {
    @Pattern(regexp = "^(?!.*(.)\\1{2})[\\s\\S]{4,12}$",
            message = "用户名长度必须为4-12位，且不允许连续出现3个及以上相同字符")
    private String username;
    private String password;
    private String nickname;

}
